package com.three.vip.controller;

import com.three.core.entity.UserBalance;
import com.three.core.vo.R;
import com.three.vip.service.UserBalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：JinShiYan
 * @date ：Created in 2025/3/17 20:40
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/vip/userBalance")
public class UserBalanceController {

    @Autowired
    private UserBalanceService userBalanceService;

    @PostMapping("/selectBalanceByUserId")
    public R<UserBalance> selectBalanceByUserId(@RequestParam Integer id) {
        return userBalanceService.selectBalanceByUserId(id);
    }

}
